﻿
namespace MyFurion.Application.Dtos
{
    /// <summary>
    /// 字典查询条件
    /// </summary>
    public class DictInfoPage:PageBaseInput
    {
        /// <summary>
        /// 字典编码
        /// </summary>
        public string DictCode { get; set; }
        /// <summary>
        /// 字典名称
        /// </summary>
        public string DictName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public EnumStatus? Status { get; set; }
    }
    /// <summary>
    /// 字典值查询条件
    /// </summary>
    public class DictDetailInfoPage : PageBaseInput
    {
        /// <summary>
        /// 字典编码
        /// </summary>
        public string DictCode { get; set; }
        /// <summary>
        /// 字典id
        /// </summary>
        public long? DictId { get; set; }
        /// <summary>
        /// 字典值编码
        /// </summary>
        public string DictItemCode { get; set; }
        /// <summary>
        /// 字典值名称
        /// </summary>
        public string DictItemName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public EnumStatus?Status { get; set; }
    }
    /// <summary>
    /// 字典新增信息
    /// </summary>
    public class DictInfoAdd
    {
        /// <summary>
        /// 字典编码
        /// </summary>
        [Required(ErrorMessage = "字典编码不能为空")]
        public string DictCode { get; set; }
        /// <summary>
        /// 字典名称
        /// </summary>
        [Required(ErrorMessage = "字典名称不能为空")]
        public string DictName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        public EnumStatus Status { get; set; }
    }
    /// <summary>
    /// 字典更新信息
    /// </summary>
    public class DictInfoUpdate : DictInfoAdd
    {
        /// <summary>
        /// id
        /// </summary>
        public long Id { get; set; }
    }
    /// <summary>
    /// 字典值新增信息
    /// </summary>
    public class DictDetailInfoAdd
    {
        /// <summary>
        /// 字典编码
        /// </summary>
        [Required(ErrorMessage = "字典编码不能为空")]
        public string DictItemCode { get; set; } = string.Empty;
        /// <summary>
        /// 字典名称
        /// </summary>
        [Required(ErrorMessage = "字典名称不能为空")]
        public string DictItemName { get; set; } = string.Empty;
        /// <summary>
        /// 状态
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        public EnumStatus Status { get; set; }
        /// <summary>
        /// 字典id
        /// </summary>
        [Required(ErrorMessage = "字典id不能为空")]
        public long DictId { get; set; }
    }
    /// <summary>
    /// 字典值更新信息
    /// </summary>
    public class DictDetailInfoUpdate : DictDetailInfoAdd
    {
        /// <summary>
        /// id
        /// </summary>
        public long Id { get; set; }
    }
}
